package com.hqyj.controller;

import com.hqyj.pojo.Power;
import com.hqyj.pojo.Role;
import com.hqyj.service.IPowerService;
import com.hqyj.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @author xfy
 * @create 2021-10-27 13:29
 */
@RestController
@RequestMapping("/powerRestful")
public class PowerRestFulController {
    @Autowired
    private IPowerService powerService;

    @RequestMapping("/powerList")
    public HashMap<String,Object> powerList(Power p){
        return powerService.select(p);
    }
}
